<?php
	session_start();	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>

	<title>PizzaRio ~ voor al uw zelfgemaakte pizza's!</title>
	
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
	<link rel="stylesheet" href="css/jquery.jcarousel.css" type="text/css" media="all" />
	<!--[if IE 6]>
		<link rel="stylesheet" href="css/ie6.css" type="text/css" media="all" />
	<![endif]-->
	<link rel="icon" href="css/images/favicon.ico" type="image/x-icon" />
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="js/jquery.jcarousel.pack.js"></script>
	<script type="text/javascript" src="js/func.js"></script>
	
	<script type="text/javascript" src="js/Scrolling.js"></script>
    	
</head>

<body>

<!-- Topvakje links bovenin -->
<div class="shell">
	<div class="border">
		<div id="header">
			<img src="css/images/logo.gif" alt="PizzaRio ~ voor al uw zelfgemaakte pizza's!" />
			<div class="socials right">
				<ul>
				    <li><a href="#" class="rss">RSS</a></li>
				    <li><a href="http://www.facebook.com" class="fb">Facebook</a></li>
				    <li class="last"><a href="http://www.twitter.com" class="twit">Twitter</a></li>
				</ul>
				<div>
					 <ul>
					 		 <li>
								<form name="form1" method="post" action="login/checklogin.php">
								<input type="hidden" name="submitted" value="true" />
							 		<input name="myusername" type="text" id="myusername" value="Gebruikersnaam">
							 </li>
							 <li>
							 <input name="mypassword" type="text" id="mypassword" value="wachtwoord">
							 </li>
					 </ul>
					 <ul>
						<li><input type="submit" name="Submit" value="Login" width="200px">
						</form></li>
					 </ul>
					 
					 <ul>
						<?php
							if(isset($_SESSION['submitted'])){
								if(($_SESSION['submitted']) > 1){
									echo "Al ingelogd. <br />";
								}
							}	
							if(isset($_SESSION['myusername'])){
								Echo "<li>Welkom ". $_SESSION['myusername'] . "</li>";
								Echo "<li><a href=\"gegevens.php\">gegevens</a></li>";
								Echo "<li><a href=\"Logout.php\">logout</a></li>";		
							}
							if(!isset($_SESSION['myusername'])){
								Echo "<li>Welkom Gast</li>";
								Echo "<li>Registreer <a href=\"registreer.php\">Hier</a></li>";		
							}
							if(isset($_SESSION['members'])){
								if($_SESSION['members']['niveau_id'] >= 2){
									echo "<li><a href=\"backend/back_end.php\">Backend</a></li>";
								}
							}						
						?>
						
				<ul>
			 </div>
			</div>

			<div class="cl">&nbsp;</div>
		</div>
		
		<div id="navigation">
			<ul>
			    <li><a href="index.php" class="active">Home</a></li>
			    
			    <li><a href="menu.php">Menu</a></li>
			    <li><a href="samenstellen.php">Pizza Maken</a></li>
			    <li><a href="inloggen.html">Inloggen</a></li>
			   
			</ul>
			<div class="cl">&nbsp;</div>
		</div>
		
		<div class="slider">
			<div class="slider-nav">
				<a href="index.html" class="left notext">1</a>
				<a href="#" class="left notext">2</a>
				<a href="#" class="left notext">3</a>
				<div class="cl">(iets)?</div>
			</div>
			<ul>
			    <li>
			    	<div class="item">
						<div class="text">
						</div>
			    		<img src="css/images/slider01.png" alt="Welkom bij PizzaRio!" />
			    	</div>
			    </li>
			    <li>
			    	<div class="item">
						<div class="text">
						</div>
			    		<img src="css/images/slider02.png" alt="" />
			    	</div>
			    </li>
			    <li>
			    	<div class="item">
						<div class="text">
						</div>
			    		<img src="css/images/Slider03.png" alt="Maak je eigen pizza!" />
			    	</div>
			    </li>
			</ul>
		</div>
		
		<div id="main">
			<div id="content" class="left">
				<div class="highlight"><br/><br/><br/><br/><br/><br/>
			<form name="form2" method="post" action="registreer/registreer_check.php">

				<strong>Gebruikersnaam:</strong><br />
				<input name="myusername" type="text" id="myusername"><br />


				Password: <br />
				<input name="mypassword" type="text" id="mypassword"><br />


				Naam: <br />
				<input name="naam" type="text" id="naam"><br />
				Straat: <br />
				<input name="straat" type="text" id="straat"><br />
				Huisnummer: <br />
				<input name="huisnr" type="text" id="huisnr"><br />
				Postcode: <br />
				<input name="postcode" type="text" id="postcode"><br />
				<input type="submit" name="Submit" value="Registreer"><br />

</form>
				</div>
			</div>
			
			<div id="sidebar" class="left">
				<h3>Menu</h3>
				<div class="sidebar-nav">
					<ul>
					    <li><a href="index.php">Home</a></li>					   
					    <li><a href="menu.php">Menu</a></li>
					    <li><a href="mijnpizzas.php">Mijn Pizza's</a></li>
					    <li><a href="registreer.php">Registreren</a></li>
					</ul>
				</div>
				
				<a href="samenstellen.php" class="btn-buy"><em>Stel samen!</em></a>
			<div>
				<div class="advertisement">
					<h3>Bestseller</h3>
						<div class="ads">
							<p> Bekijk onze bestseller pizza en laat je verleiden! <br/> <br/> </p>
							<?php
								include 'bestseller.php';
							?>
							
						</div>
						<div class="cl">&nbsp;</div>
					</div>
				</div>
				
				
			</div>
			<div class="cl">&nbsp;</div>
		</div>
		
		<div class="shadow-l"></div>
		<div class="shadow-r"></div>
		<div class="shadow-b"></div>
	</div>
	
	<div id="footer">
		<div class="footer-nav left">
			<ul>
			    <li><a href="index.html">Home</a></li>
			    <li><a href="pizzario.html">Over PizzaRio</a></li>
			    <li><a href="menu.html">Menu</a></li>
			    <li><a href="bestsellers.html">Bestsellers</a></li>
			    <li><a href="inloggen.html">Inloggen</a></li>
			    <li class="last"><a href="contact.html">Contact</a></li>
			</ul>
		</div>
		<p class="copy right">Copyright &copy; PizzaRio ~ 2012 </p>
		<div class="cl">&nbsp;</div>
	</div>
</div>
</body>
</html>